#!/bin/bash -e

if [[ -e "/usr/lib/librockit.so" ]]; then
    echo "Found librockit.so"
else
    sudo cp ../../streamer/StreamerCppNode_Rknn2/lib/librockit.so /usr/lib/librockit.so
fi

rm -rf build
mkdir build
cd build 
cmake ..
make -j4

